<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
    <title>导航菜单</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <script language="JavaScript" src="${pageContext.request.contextPath}/OfficeAuto/script/jquery.js"></script>
    <script language="JavaScript" src="${pageContext.request.contextPath}/OfficeAuto/script/menu.js"></script>
    <script language="javascript"
            src="${pageContext.request.contextPath}/OfficeAuto/script/jquery_treeview/jquery.treeview.js"></script>
    <link type="text/css" rel="stylesheet"
          href="${pageContext.request.contextPath}/OfficeAuto/script/jquery_treeview/jquery.treeview.css"/>

    <link type="text/css" rel="stylesheet"
          href="${pageContext.request.contextPath}/OfficeAuto/style/blue/menu.css"/>
    <style>
        a{
           text-decoration: none;
        }
    </style>
    <script type="text/javascript">
        $("#privilegeTree").treeview();
    </script>
</head>
<%--
<img
		src="${pageContext.request.contextPath}/OfficeAuto/style/images/MenuIcon/menu_arrow_single.gif" />--%>
<body style="margin: 0">
<div id="Menu">
    <ul id="MenuUl">
        <s:iterator value="#session.privilegesTop">
        <s:if test="#session.user.booleanPrivilege(name)">
            <li class="level1">
                <div onClick="menuClick(this);" class="level1Style"><img
                        src="${pageContext.request.contextPath}/OfficeAuto/style/images/MenuIcon/FUNC20082.gif"
                        class="Icon"/>
                    <s:a href="%{Url}" target="right">${name}</s:a>
                </div>
                <ul style="display: none;" class="MenuLevel2">
                    <s:iterator value="children">
                        <s:if test="#session.user.booleanPrivilege(name)">
                        <li class="level2">
                            <div class="level2Style"><img
                                    src="${pageContext.request.contextPath}/OfficeAuto/style/images/MenuIcon/menu_arrow_single.gif"/>
                                <s:a href="%{Url}" target="right">${name}</s:a>
                            </div>
                        </li>
                        </s:if>
                    </s:iterator>
                </ul>
            </li>
        </s:if>
        </s:iterator>
    </ul>
</div>
</body>
</html>
